package com.dodock.banglapapers.server.generator;

import java.io.IOException;

import com.dodock.banglapapers.server.helper.DDNNewsDetailBDProtidin;
import com.dodock.banglapapers.server.helper.DDNNewsDetailBanglanews24;
import com.dodock.banglapapers.server.helper.DDNNewsDetailDW;
import com.dodock.banglapapers.server.helper.DDNNewsDetailInqilab;
import com.dodock.banglapapers.server.helper.DDNNewsDetailIttefaq;
import com.dodock.banglapapers.server.helper.DDNNewsDetailKalerkantho;
import com.dodock.banglapapers.server.helper.DDNNewsDetailManobZamin;
import com.dodock.banglapapers.server.helper.DDNNewsDetailPoriborton;
import com.dodock.banglapapers.server.helper.DDNNewsDetailProthomAlo;
import com.dodock.banglapapers.server.helper.DDNNewsDetailSamakal;

public class DDNGetNewsDetailGenerator {
	private String newspaperid;
	private String newsid;
	
	public DDNGetNewsDetailGenerator(String newspaperid, String newsid){
		this.newspaperid = newspaperid;
		this.newsid = newsid;
	}
	
	public String Generate() throws IOException{
		if(newspaperid.equalsIgnoreCase("prothomalo")){
			DDNNewsDetailProthomAlo gen = new DDNNewsDetailProthomAlo();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("bdnews24")){
			
		}
		else if(newspaperid.equalsIgnoreCase("manobzamin")){
			DDNNewsDetailManobZamin gen = new DDNNewsDetailManobZamin();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("dw")){
			DDNNewsDetailDW gen = new DDNNewsDetailDW();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("samakal")){
			DDNNewsDetailSamakal gen = new DDNNewsDetailSamakal();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("kalerkantho")){
			DDNNewsDetailKalerkantho gen = new DDNNewsDetailKalerkantho();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("banglanews24")){
			DDNNewsDetailBanglanews24 gen = new DDNNewsDetailBanglanews24();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("ittefaq")){
			DDNNewsDetailIttefaq gen = new DDNNewsDetailIttefaq();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("inqilab")){
			DDNNewsDetailInqilab gen = new DDNNewsDetailInqilab();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("poriborton")){
			DDNNewsDetailPoriborton gen = new DDNNewsDetailPoriborton();
			return gen.Generate(this.newsid);
		}
		else if(newspaperid.equalsIgnoreCase("bd_protidin")){
			DDNNewsDetailBDProtidin gen = new DDNNewsDetailBDProtidin();
			return gen.Generate(this.newsid);
		}
		return "";
	}
	
}
